#include<stdio.h>
int main()
{

    int x;
    int y;
    printf("enter x\n");
    printf("---------------\n");
    scanf("%d",&x);
    if(x>0)
    {
        y=1;
    }
    else{
        if(x<0)
        {
            y=-1;
        }
        else{
            if(x=0)
            {
                y=0;
            }
        }
    }
    printf("y is %d",y);
}